package service

import (
	"gorm.io/gorm"
	"table-compare/db"
)

type SystemService struct {
	db *gorm.DB
}

func (s *SystemService) List() []db.System {
	var rs []db.System
	s.db.Model(&db.System{}).Find(&rs)
	return rs
}
